package com.teamall.web.sys.db.dao.mapper;

import com.teamall.web.sys.db.arg.SysPhotoArg;
import com.teamall.web.sys.db.po.SysPhotoPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ISysPhotoMapper {
    
    List<Integer> countByArg(SysPhotoArg arg);

    List<SysPhotoPO> selectByArg(SysPhotoArg arg);

    SysPhotoPO selectByPrimaryKey(Integer id);

    List<SysPhotoPO> selectByArgAndPage(SysPhotoArg arg, RowBounds rowBound);

    int insert(SysPhotoPO record);

    int insertSelective(SysPhotoPO record);

    int insertBatch(@Param("list") List<SysPhotoPO> records);

    int updateByArgSelective(@Param("record") SysPhotoPO record,
                             @Param("arg") SysPhotoArg arg);

    int updateByArg(@Param("record") SysPhotoPO record,
                    @Param("arg") SysPhotoArg arg);

    int updateByPrimaryKeySelective(SysPhotoPO record);

    int updateByPrimaryKey(SysPhotoPO record);
    
    int deleteByArg(SysPhotoArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}